package com.pansoft.openplanet.bean;

/**
 * 交易
 * Created by YQS on 2018/3/27.
 */
@Deprecated
public class TradeBean {

    //用户名
    private String userName;
    //头像
    private String avatar;
    //交易价格
    private String price;
    //交易数量
    private String count;

    private float percent;
    private String title;

    private TradeBean(Builder builder) {
        userName = builder.userName;
        avatar = builder.avatar;
        price = builder.price;
        count = builder.count;
        percent = builder.percent;
        title = builder.title;
    }

    public String getUserName() {
        return userName;
    }

    public TradeBean setUserName(String userName) {
        this.userName = userName;
        return this;
    }

    public String getAvatar() {
        return avatar;
    }

    public TradeBean setAvatar(String avatar) {
        this.avatar = avatar;
        return this;
    }

    public String getPrice() {
        return price;
    }

    public TradeBean setPrice(String price) {
        this.price = price;
        return this;
    }

    public String getCount() {
        return count;
    }

    public TradeBean setCount(String count) {
        this.count = count;
        return this;
    }

    public float getPercent() {
        return percent;
    }

    public TradeBean setPercent(float percent) {
        this.percent = percent;
        return this;
    }

    public String getTitle() {
        return title;
    }

    public TradeBean setTitle(String title) {
        this.title = title;
        return this;
    }

    public static final class Builder {
        private String userName;
        private String avatar;
        private String price;
        private String count;
        private float percent;
        private String title;

        public Builder() {
        }

        public Builder userName(String val) {
            userName = val;
            return this;
        }

        public Builder avatar(String val) {
            avatar = val;
            return this;
        }

        public Builder price(String val) {
            price = val;
            return this;
        }

        public Builder count(String val) {
            count = val;
            return this;
        }

        public Builder percent(float val) {
            percent = val;
            return this;
        }

        public Builder title(String val) {
            title = val;
            return this;
        }

        public TradeBean build() {
            return new TradeBean(this);
        }
    }
}

